package online.shenme.day14_self.dao;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;

public interface DAO<E,T> {
    File home=new File("javaadvance/src/online/shenme/day14_self/domin");
    HashMap<E,T> findAll();
    boolean delete(String id);
    boolean reSet(String id,T t);
    boolean add(E e,T t) throws IOException;
    T getById(String id);
}
